import request from '@/utils/request'
export function getData(data: any) {
  return request({
    url: '/Wms_WareHouse/GetPageData',
    method: 'post',
    data,
  })
}
export function getList(data: any) {
  return request({
    url: '/Wms_WareHouse_Area/GetPageData',
    method: 'post',
    data,
  })
}

export function getwhainfo(data: any) {
  return request({
    url: '/Wms_WareHouse_Area/getwhainfo',
    method: 'post',
    data,
  })
}
export function doEdit(data: any) {
  return request({
    url: '/Wms_WareHouse_Area/savewha',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/Wms_WareHouse_Area/delwha',
    method: 'post',
    data,
  })
}

// 库区下载

export function Wms_WareHouse_AreaDown(data: any) {
  return request({
    url: '/Wms_WareHouse_Area/DownLoadTemplate',
    method: 'get',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 库区导出

export function Wms_WareHouse_AreaExport(data: any) {
  return request({
    url: '/Wms_WareHouse_Area/Export',
    method: 'post',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
    data,
  })
}
